﻿using System;
using System.Collections.Generic;
using System.IO.Ports;
using System.Linq;
using System.Text;

namespace GKQC.Machine
{
    public class LcMeterDebug : ILcMeter
    {
        public string Prefix { get; set; }
        public bool Check(SerialPort sp)
        {
            bool flag = false;

            return flag;
        }
        public void Char(SerialPort sp)
        {
            
        }

        public void ControlMachine(SerialPort sp)
        {
            
        }

        public void DisCharge(SerialPort sp)
        {
            
        }

        public int GetChargeTime(SerialPort sp)
        {
            return 3;
        }

        public string GetData(SerialPort sp)
        {
            return string.Empty;//todo:debug getdatea
        }

        public void SetCharTime(SerialPort sp, decimal chargeTime)
        {
            
        }

        public void SetDisChargeTime(SerialPort sp, decimal disChargeTime)
        {
            
        }

        public void SetLeak(SerialPort sp, string leak)
        {
            
        }

        public void SetVoltage(SerialPort sp, decimal voltage)
        {
            
        }

        public void Test(SerialPort sp)
        {
            
        }

        public void UnControlMachine(SerialPort sp)
        {
            
        }

        public decimal GetVoltage(SerialPort sp)
        {
            return 30m;
        }

        public void SetTestTime(SerialPort sp, decimal testTime)
        {
  
        }

        public List<double> AnalysisData(string rawData)
        {
            return new List<double>();
        }

        public string GetLeak(SerialPort sp, string add)
        {
            return string.Empty;
        }
    }
}
